package me.chan.netty.rpc.server.serialize;

import java.io.IOException;

public interface Serializer {

    <T> byte[] serialize(T t) throws IOException;

    <T> T deserialize(Class<T> clazz, byte[] bytes) throws IOException;

}
